using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;

namespace XmlObjects
{
	public class PropertyItem
	{
		private PropertyItem()
		{
		}

		public static IPropertyItem GetPropertyItem(object theObject, PropertyInfo propertyInfo)
		{
			if (propertyInfo.PropertyType ==typeof(string))
			{
				return new StringPropertyItem(propertyInfo, theObject);
			}
			else
			{
				return new ObjectPropertyItem(propertyInfo, theObject);
			}
		}
	}
}
